package com.kaili.finance.export.base;
import cn.afterturn.easypoi.entity.vo.NormalExcelConstants;
import com.kaili.finance.pojo.entity.FinDriverCalcExport;
import com.kaili.finance.service.FinCheckBillService;
import com.kaili.finance.tools.Tools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

/**
 * Created by :xinglei
 * *  *  *  *  *  *  *  *  *
 *
 * @Created time :18-5-29. 交易汇总导出
 * @Company :杭州凯立通信有限公司
 * *  *  *  *  *  *  *  *  *
 */

@ExportNotice(name = "驾驶员结算导出")
@Component
public class ExportDriverCalc extends BaseExport{
    @Autowired
    private FinCheckBillService finCheckBillService;
    @Override
    public HashMap doExport(HashMap parm) {
        HashMap ret = new HashMap();
        ret.put(NormalExcelConstants.CLASS, FinDriverCalcExport.class);
        parm = (HashMap) Tools.trimHashMap(parm);

        List<FinDriverCalcExport> list = finCheckBillService.queryDriverByKeywordsExport(parm);

        ret.put(NormalExcelConstants.DATA_LIST, list);
        return ret;
    }
}
